<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>添加商品分类</title>
	<hdjs />
	<js file="__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.category.js" />
	<css file="__PUBLIC__/css/mod.base.css" />
</head>
<body>
	<form action="" method="post" enctype='multipart/form-data' class='hd-form' name="form">
		
			<div class="hd-menu-list">
				<ul>
					<li>
						<a href="{:U('GoodsCate/index')}" >商品分类列表</a>
					</li>
					<li class='active'>
						<a href="javascript:;" >添加商品分类</a>
					</li>
					
				</ul>
			</div>

			<div class="right_content">
				<div class="hd-tab">
					<ul class="hd-tab-menu">
						<li lab='base' class="active">
							<a href="#">基本配置</a>
						</li>
						<li lab='view'>
							<a href="#">模板配置</a>
						</li>
					</ul>
					<div class="hd-tab-content">
						<div lab='base' class='hd-table-area'>
							<table class='hd-table hd-table-form hd-form'>
								<tbody>

									<tr>
										<th >
											上级分类
											
										</th>
										<td>
											
											<select name="pid" >
													<option value="0">一级分类</option>
													<foreach name='goodscate' item='v'>
														<option value="{$v.cid}" <if condition="isset($parent) &&$parent['cid'] eq $v['cid']">selected='selected'</if>>{$v._name}</option>
													</foreach>
											</select>
										</td>
									</tr>
									<tr>
										<th >
										分类名称
										<span class="star">*</span>
										</th>
										<td>
											<input type="text" name="cname"  class='hd-w200'/>
										</td>
									</tr>



									<tr>
										<th>分类关键字</th>
										<td>
											<textarea name="keywords" class='hd-w500 hd-h100'></textarea>
										</td>
									</tr>

									<tr>
										<th>分类描述</th>
										<td>
											<textarea name="description" class='hd-w500 hd-h100'></textarea>
										</td>
									</tr>

									<tr>
										<th>
											分类排序
											<span class="star">*</span>
										</th>
										<td>
											<input name="sort" type="text" class='hd-w200' value="100" />
										</td>
									</tr>
								
								</tbody>
							</table>
						</div>
						<div lab='view' class='hd-tab-area'>
							<table class='hd-table hd-table-form hd-form'>
								<tbody>
									<tr>
										<th class="hd-w100">
											每页记录数
											<span class="star">*</span>
										</th>
										<td>
											<input name="page" type="text" class='hd-w200' value="<if condition="isset($parent['page'])">{$parent.page}<else/>20</if>" />
										</td>
									</tr>
					


									
									
									
									
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>

			<input type="submit" class='hd-btn hd-btn-sm' value="添加" />
			<input type="button" class="hd-btn hd-btn-sm" onclick="location.href='{:U('GoodsCate/index')}'" value="返回"/>

	</form>
</body>
</html>